Improved javascript cache.