changed spawn to exec in web.js for node