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`