Some haxe3 js fixes