Simplified javascript code significantly by introducing one time (in dsec). Renamed Stop button to Pause.