Add hook for dart2js