Rewritten in Node JS style
Rewritten in Node JS style