Pass global to wrap functions. Will pass window, if browserify is used.