'global' detection wrapper was not needed, browserify does it for us