Application cache for angular.js