Fixed Timeline.php JS bugs