I would like the below function to be more flexible and accept multiple callbacks to other functions if they are defined in the arguments.
$(function() {
In more recent times you can now make use or the spread and rest operators as detailed here - Pass unknown number of arguments into javascript function