Fix bug in UI

Fix bug in getFirstWeekDay() in ui.js