Use setInterval function to achieve pause. DONE.