delete needless jquery and add reset function in searching function