added methods to detect dart2js