Set CodeMirror mode to Haxe, doesn't open JS files from Tern demo, added Haxe sample code, set mode to Haxe for newly created tabs.