enable autoloading of required js/css files
make haxe3 compatible