Update delegate.js