Documentation + JavaScript

Wrote more JS for game view.