Added some javascript to autoload dependencies and set the editor mode when the language is changed. Closes #18.