[javascript, xml, haxe modes] Fix strict-mode violations