Created single search.js file to remove some code duplication
Merge branch 'master' into gh-pages