Make request work with browserify

This should hopefully fix #455 for most people I guess.

Please feel free to correct the style of code comments if you prefer another one.