Fix the errors
Merge pull request #1 from Tonkpils/master

Fixed the js errors in search file