Fixed demonstration code, upgrade to HTML5