Fix the html5 and canvas snippets.