diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js
index db2b61f..27a1f21 100644
--- a/IPython/frontend/html/notebook/static/js/notebookmain.js
+++ b/IPython/frontend/html/notebook/static/js/notebookmain.js
@@ -43,8 +43,8 @@ $(document).ready(function () {
var ih = $('#test3').innerHeight();
if(nh != bh || nh != ih) {
$('head').append('');
- $('#fonttest').remove();
}
+ $('#fonttest').remove();
if(IPython.read_only){
// hide various elements from read-only view