search: jshint fixes

* Adds .jshintrc.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>