same searchbox on all pages

I still cannot figure out how to use Pystache to do this
in a non-kludgy way.
WIP
fixing pagesubmit prob, pairing with Nicholas Cassleman

  Introduced event.preventDefault() to avoid page refresh
  Fixed search-query argument (input, not form ID)