make getCanvasElementById safe, fixes #2
add capability to get and set textAlign
Merge branch 'safe-get-canvas-element'