title: How can I override a method in Javascript and apply it to the original object, not a child?
body: <p>I'm trying to override the <code>play()</code> method of the Audio object, but I don't want to do so just for a child object. I want to apply it to the standard Audio object. </p>
  
  <p>The problem is I also want to use the original <code>play()</code> method. I've tried cloning the Audio object, making the changes, while calling the original Audio object's <code>play()</code> method and re-assigning back to the original Audio object. It doesn't work.</p>
  
  <p>Ideas anyone? As an example, how could you add an <code>alert()</code> in the <code>play()</code> method while still calling the original play method?</p>
  
  <p>plz. I need to do this because I have calling code generated by a tool that is calling new Audio. So it will be a super pain to constantly have to do a replace-all on this for the hundreds of code generations I'm doing.  </p>