Change the screen geometry event handler to use node.js EventEmitter