js updates and timepicker