headless js and time update