diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js
index ca59c8e..0424c6f 100644
--- a/IPython/frontend/html/notebook/static/js/notebook.js
+++ b/IPython/frontend/html/notebook/static/js/notebook.js
@@ -1013,11 +1013,11 @@ var IPython = (function (IPython) {
Notebook.prototype.toJSON = function () {
var cells = this.get_cells();
var ncells = cells.length;
- cell_array = new Array(ncells);
+ var cell_array = new Array(ncells);
for (var i=0; i