speed up by caching js file