update js for timeline