build script caches js files for faster runs