Took out main code from Participants.js and put in ParticipantMain.