Major javascript writing.

Wrote objects to handle a bunch of stuff as well as the main init, and
local storage loading/unloading