delegate.js change