Browser compatibility using bops

This works in the browser now too, using chrisdickinson's `bops` module.