search and update js references outside application erb