renamed app to emitter in app/index.js