Quick fix: settings.total can be a function!

related to the Sample #14 Table with external control of data, when run alone it does not work: totalItems is assigned with settings.total, which in this case is a function; this causes numPages to be NaN.