That's a function just as normal as any. The only difference is that it is stored somewhere, probably in a regular old object.
You can make objects in JavaScript:
var blah = {}; // empty
Or maybe like this, storing key/value pairs:
var point = {x: 5, y: 22};
Then you can do:
point.x; // is 5!
An easier-to-look-at way of writing the same thing is:
var point = {
x: 5,
y: 22
};
There you can very clearly see that x is "mapped" to 5 and y is "mapped" to 22.
In this case, instead of making the value "5" or "22", the value is a function
var point = {
x: 5,
y: 22,
functionName: function() { ... }
};
Then you can use that object like this:
point.x; // is 5!
point.functionName(); // calls the function!
A lot of times in JavaScript you will see basically this:
var LibraryOfFunctions = {
functionA: function() { ... },
functionB: function() { ... },
functionC: function() { ... },
};