Switched to dart:js and removed unecessary onDone