javascript minimalist approach in Node.js