HTML assets gain access to the DMC API by defining a function called `run` against the `window` object. This function will be called by DMC just after the `load` event fires on the page, so must be defined outside of any `window.onload` callback. The first argument passed to this function is the `dmc` object. The function should have no other named arguments.

window.run = function (dmc) {
  // your code
};