Added debugging to eventPage.js