moved jquery to header and added the javascript functions to add gravatar url