Upgraded to new HTML5 library