fix handle all extensions not just .js

`addModule` assumed extname was `.js` so coffee files looked like `file.cof`, `file2.cof` in `global.require` table.