Fix for dart:html changes