title: Create an <object> with <param> using JS/DOM
body: <p>In HTML you have something like:</p>
  
  <pre><code>&lt;object ...&gt;
   &lt;param name="onLoad" value="loaded"/&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>You can achieve this through JS by simply writing the <code>innerHTML</code> but I'd rather do it 'properly'. For the <code>&lt;object&gt;</code> itself:</p>
  
  <pre><code>var object = document.createElement("object");
  object.id = ...;
  </code></pre>
  
  <p>But how do I add the params? </p>