Move searchbar code into searchBar.js
Specify search code in separate block so it applies to all instance pages
Dynamic building of search elements hash by reading DOM elements