updating endorsements using ajax and javascript, no page refreshwhen clicking on endorsements