minor bug fix, define 'cell' in dialog.js.

Very minor fix...

The 'cell' variable in dialog.js isn't defined and causes an error in js console.