Speedup by only getting value of CodeMirrors once
Saving a line by making new function inline
Line and other optimizations