JS: Modularization. Use require.js for loading stuff.
Many UI changes:

- possibly bad depth data can be hidden from view
- stores the current view into a cookie so that
  on next reload we return to the same place.