AngularJS re-write of the timeline widget