Moving the update_attributes JS for data_search.