A mini library to allow node style scripts to be 'require'ed into a local variable