adds hook method to base object for calling onEvent methods and obj.com.on('event', function() {}) method