Migration to use dart:js