fix for delete localStorage[key] no longer being supported in Firefox.