Adding the eventhandler on to the scopes prototype and add listener handling