added jQuery ajax for attending and unattending events