adaptation to node.js lib, cleanup
corrections to npm module config