scheduler: added new elaboration to compute the mode
updated jquery