DOM querying and construction module.