change JavaScript to CommonJS pattern
update NodeJS modules