javascript to add keys to local storage of browser