Automated DOM generation