[CB-4564]Only alow .js files into frameworkModules

  Reviewed By: Bryan Higgins <bhiggins@blackberry.com>
  Tested By: Tracy Li <tli@blackberry.com>