Fix ResourceLoader issues

* Add JS file
* Change addModuleStyles to addModules