Update eventPage.js

Moved tab JS into its own file