Fix textBaseline 'top' and 'middle'

I fixed context.textBaseline options for 'top' and 'middle' and removed some unused variables.