Fix js error on events page.