I have 3 loops
1-getting the name of the week day 2-getting the number of the day 1 and 2 came from js function.
JavaScript
var DAYS = [\'Sun\',