Added EOL check in require loop

The standard loop to require files checked for .(js|coffee), but that included swapfiles.

```
/home/modin/code/project/app/models/.article.js.swp:1
(function (exports, require, module, __filename, __dirname) { b0VIM 7.4
                                                                    ^^^
SyntaxError: Unexpected number
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /home/modin/code/project/app.js:15:5
    at Array.forEach (native)
    at Object.<anonymous> (/home/modin/code/project/app.js:13:28)
    at Module._compile (module.js:456:26)
>> application exited with code 8
```

I changed the loop so that the file extension has to be at the very end of the filename to be required.