Fixed: ReferenceError: dayOfWeek is not defined