title: javascript/jquery do in order
body: <p>I have this code for and audio tag of html</p>
  
  <pre><code>$("#STOP").click(function(){
      $("#soundContainer")[0].currentTime = 0;
      setTimeout(function(){
          document.getElementById("soundContainer").pause();
          $("#pause").val("pause");
          $("#insert_here").text("None");
      },100);
  });
  </code></pre>
  
  <p>without timeout, pause doesn't work <br>
  I guess that pause finishes first and then currentTime is set <br>
  so it starts playing from the beginning rather than to stop <br></p>
  
  <p>So Is there any other solution to avoid timeout?
  <br>
  thanks in advance.</p>