html canvas 2d dom and text controls