Minor progress with DOM -> program tree conversion