Tested through jQuery version 1.11.0
Cleaned up some loops
Changed default argument names to "arg1", "arg2", etc. instead of "1", "2", etc.
Removed duplicate string
Removed accidental console.dir(name) line in the output of the TRIGGER