* added data-settings-max value to html * fixed: use the value and not the defenition of the function * the schedules variable already starts from 0 not need to increment * another misuse of function as variable