switch localstorage to using angular locker