Some extensions for localStorage