added support for text-anchor, modified test

Hi again,

Added text-anchor support & modified test case to use 'start' and 'end' instead of 'left' and 'right'.

It works in IE8 too, though I don't fully understand how...

Cheers,
Tyler