JavaScript code for creating a custom html tag for a gravatar image