Fixed bug with `modules` for nodejs
Merge pull request #2 from andrewblond/bugfix/modules

Fixed bug with `modules` for nodejs