Allowed this to run with PhantomJS (but now running with actual active record needs to uncomment some lines).
added support for storing to local storage
Added local storage interface
made local storage use instance methods
Got local storage actually working in an application