Fixed Need to make checks that the callback is a proper function and eventName is a proper value as well #2

Fixed Null/undefined for param values to 'on' and 'once' methods.
you can combine those 2 lines and not define obj at all.