Only require files that end in .js (avoid errors from requiring source map files, for example)