Adding ttl to the angularjs localstorage