fixed an issue with dart2js preventing compiled js code from working