Some caching and nodejs script improvements