Finish basic time counter (js part);