https://github.com/shane-tomlinson/browserid/pull/8/files#r4893398