Mini-DOM code on the way