Updating a lot

- Retooling javascript files to use JQuery and more self-contained class
definitions.
- Css fix up, canvas tag retooling.
- Added common.js file
- Added error and compatibility checking.
- Added console logging stand-in