wrapper for localStorage - fixes Chrome <iframe>ing (bug 872648)