Work around lack of interop between JS and Dart components

See https://code.google.com/p/dart/issues/detail?id=19979