CHANGE ensure JS is only loaded on relevant pages and that CSS changes only affect events pages