Create delegate.js