<canvas>
This example shows how a photo is loaded in a <canvas> tag and then flipped.
Click on the photo to flip (provided, of course, that your browser supports <canvas>)
Blog post is here