add DOM.render method, time profiled code