Updated html5 example for canvas