Set text align on the HTML5 canvas

Example of how you can set the text align on the HTML5 canvas.