use bops, for browser compatibility

This makes compact2string work in the browser! Tests pass.