Put all the onload stuff (initializations, handlers) in the html

For small projects I like having all the initializations and handlers
in one place, and the html file seemed as good a place as any.
Lotsa format changes, some refactors mostly for style points, gettin' to know this motherlovin' code
Sorry i know this is annoying