Updated build.js for latest Node version