add equal to in search & clean up js