initiated the gravatar directive and tested ajax call using  to call the event data (json)