Persistance layer in Javascript.