fix loading of files other than *.js and *.coffee

Currently you replace all file endings with .js. This breaks the routes for other files like template files loaded with the text plugin for RequireJs which may have a .html ending. Assetic is not able to properly generate routes for those files in development mode. You should only explicitly replace those file extensions that need replacement.