removed some complications in cache.js, needs to be revisited to determine if the class will be useful / developed further