Fix jquery-bbq for browserify

Let's fix jquery-bbq to work with browserify:

- use `window` instead of `this`
- `require()` in dependencies

Note that we could get fancier, but I say keep it simple so the diff with the original is small.