Corrected JS restoration time