Fix caching mechanism in utils.js