Fixed #4

Upgraded to latest version of JSLint and CodeMirror. Added failing unit
tests for known issues.
Fixed #6

Also moved bootstrap code outside demo.js so it won't slow down the
initial render.