changed for html5 demo