Fuck a bunch of stupid angular appcache directive factory bullshit. Do it the sensible non-Angular way.