Fixed #4

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