Added Emitter to support app.when('ready', fn)