fixing small bugs in search.js
Merge branch 'master' of github.com:QScience/qscience_d2dsearch