incrementing the cache for js