Implement some more DOM stuff; close #262