Refactor JS code for map pages

* Create `mapPage.js` to contain reusable code from tree map page
* Rename `map.js` as `treeMap.js`
Pages with a big map need location search. Giving them `searchBar` this way means they get it for free.