JS Count Time with Play, Pause and Stop