fixing requirejs modules to load properly