make html_5 builder more flexible