[client][EventsView] Create elements in JS code dynamically.