Fixed Jaascript bug on search box