from js-interop to dart:js, then the error on built JS disappeared.

https://www.dartlang.org/articles/js-dart-interop/