localStorage: ALLDOCs new API and qunit tests