Removed dependancy on file names ending in .js

Don't know why but the dist files seem to have more changes than
expected.
Merge pull request #309 from digiguru/development

Removed dependancy on file names ending in .js