Refactored the event listener code, there really was no need to have it so verbose.
Refactored the event listener code, there really was no need to have it so verbose.

chazen/easyXDM,lanson647/easyXDM,oyvindkinsey/easyXDM,oyvindkinsey/easyXDM,oyvindkinsey/easyXDM,cake-disposal-squad/easyXDM,oyvindkinsey/easyXDM,aaron-goshine/easyXDM,aaron-goshine/easyXDM,cake-disposal-squad/easyXDM,jspath/easyXDM,jspath/easyXDM,oyvindkinsey/easyXDM,aaron-goshine/easyXDM,jmptrader/easyXDM,lanson647/easyXDM,cake-disposal-squad/easyXDM,chazen/easyXDM,jspath/easyXDM,lanson647/easyXDM,jmptrader/easyXDM,chazen/easyXDM,jmptrader/easyXDM