Use bugsense variable on window.

This fixes a problem using bugsense with browserify.