javascript changes for asset pipeline