Fixed auto-rotation
General refactor of client-side JS
Merge pull request #42 from rjbernaldo/globe-refactor

Globe refactor