Added nodejs generator

This is mostly based on the existing js generator, it probably still needs some work, but I thought I'd submit a pull request to see if the community has any feedback.