From http://www.deluxeblogtips.com/2010/04/get-gravatar-using-only-javascript.html