Ajax request updating endorsement count working