Modules and dependancy injection for the browser