fixed loadModules for *.js files