removed necessary local vars in event.js