function optionCallback(fn, element, index, length, elements, option) {
    try {
        return fn.call(element, index, length, elements, option);
    } catch (e) {
        console.error("VelocityJS: Exception when calling '" + option + "' callback:", e);
    }
}
Call an option callback in a try/catch block and report an error if needed.