Update code in Node.js according to recent code change