updated to comply with new commonjs module style
Merge pull request #1 from walterhiggins/master

updated to comply with new commonjs module style