Only alow .js files into frameworkModules

Check to prevent rogue files from entering frameworkModules