Add dependencies in spawn.js