fix bops usage

this makes it actually work in the browser