javascript check if localstorage has key