Added scope example for event listener handler function, with a function to allow scope binding for events