jsbuild: fix error when running for the first time