added client-side code for timeline diagram visualization