I found some issues with this file. I have uploaded it on github. Please have a look:
This is the first time I use github for a code review, and I noticed the view is not ideal, I found this userscript adds CSS that will make the code area expand the entire with of your screen, which is much better because they don't word wrap.
(installs with greasemonkey in firefox)
If I make any mistakes, I am always happy to learn.