ported https://github.com/thinkphp/browserID-MooTools to jquery