Examples and testing HTML5 canvas component