Javascript Modules and Injection Framework