Resize javascript on event page