Change main.js for node sending