changed context2d to context2D
removed IE8 workaround (not supported by Dart anyway) and fixed some compile time errors