Basic view JavaScript

The App.js groundwork to control the different views. WIP