Removed snippet of javascript that wasn't being run in the search page