An angularJs Service for local storage