Made improvements to javascript files in asset pipeline