working on update js files to work with rails4