Removed dependancy on file names ending in .js

Don't know why but the dist files seem to have more changes than
expected.