javascript check if localstorage key exists