Simple cache implementation for JavaScript applications