Fixed error with adding attendeeArray inside event.js and simplified var
names