Generate gravatar URL's in js without a jQuery dependency