updated again teh javascript clock for pause and restart