Better support for browsers.

I'm using Require.js, so `this` doesn't refer to the `window` object, so async didn't work until I made this change.