wrapper is now module of node.js; changed application structure