beautify search button and modifying js