Improved handling of assets(javascripts)