Added support for generated file to run on node too.

Closes gh-21.