Adding Event Listener In Typescript