new event emitter function in util.js
away.js plugin updated with new code, tests are passing