JavaScript: Node.js makefile refactor