Some fiddling with AngularJS, $http and HTML5 LocalStorage