Noder-js code review

This pull request corresponds to commit ce51f21e32b1d1bd457069091c8fab94da2f663e in the master branch.

Please review the code of noder-js.

Thank you!