Refactor DOM specials. closes troopjs/troopjs-browser#11