updated js local storage working