Update ScriptBox to use JS method for CodeMirror

* Previous implementation was broken with new move_to_element additions.
* Pure JS implementation is faster.