Removed dependancy on file names ending in .js

Don't know why but the dist files seem to have more changes than
expected. Seems to pass grunt, did some manual tests and it all seems good. Let me know if I can do anything else.