make use of require for search js
remove no longer needed files
couple of small fixes
Merge pull request #893 from simod/new-js

Group search scripts under requirejs.