JavaScript cleanup

Refactors and documents the site's JavaScript code

- [ ] Documentation
  - [x] Set up documentation tools
  - [x] Document `map.js`
  - [x] Document `reports.js`
  - [ ] Document `getinfo.js`
- [ ] Refactoring
  - [x] Remove unused / commented functions
  - [x] Fix code indentation and formatting to improve readability
  - [ ] Create a `getData()` function which then passes report data to map and reports (instead of dodgy hack of calling reports function from within load reports function.