javascript component displaying a simple time line