Cleans a la jshint.
Refactors commandCodes function of SC.Event to be easier to read and with more descriptive inline documentation.