Restructures css and js inclusion in event template hierarchy.