Fixed stylistic errors in the javascript file and added comments to make it easier to understand
Cleaned up html, javascript, added comments
Format fix
more format fixes