Can't use `eval` in Chrome extensions. So use the other way to tell if
it's a window or a node program...
fix a bug
darnit.  i always forget to build
this at least works, though it's slow...
more tests and things are working now in both cases
this might be a better attempt for browserify