Update example.html

Took some of the rendering responsibility from the script.