Nodejs as a module