Updating storage API to match WebStorage