search: code clean-up, comments, documentation

* Improves code organization in
  helpers_base.html.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
search: fix for browse button

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>