Move the JavaScript for the hub to its own file.
Minor refactor.
Fixed a namespacing issue.

Made the canvas adjust its size dynamically.