Please rename vars to dom and renderer (I do not follow Closure conventions)