debugging $http in localForage issue