adding dynamic event page and accompanying javascript