If using a module system, don't write to window.$dom.