Remove references to unexisting onComplete function