Added the timeline visualization to the dashboard, moved all javascript functions to a separate helper script