run code within a normal module context

this means you can use `require` etc within examples. This makes the
tmp file redundant but to still enable debuging the compiled source is
output to `stdout`
fix error check in node@8.x
Merge pull request #2 from jkroso/add/requireSupport

run code within a normal module context