Fix bookmarklet in Firefox

This appears to work for me on localhost, but due to the nature of the
issue it won't be clear if this solves the problem until it's deployed.

Ref #651