Fixes to Sublime Text's JavaScript handling