fix(browser): more robust op mapping

This fixes #36.