marcuswestin's store.js exposes a simple API for cross browser local storage. storejs-rails packages it to use with Rails asset pipeline.