improve JS compile errors
improve JS compile errors

dart-lang/dart-services,dart-lang/dart-services,kasperpeulen/dart-services,kasperpeulen/dart-services,dart-lang/dart-services,kasperpeulen/dart-services