CB-7733 Errors in weekdays fixed

* getDateNames should return (Sun - Sat) in all locales
* getFirstDayOfWeek should return 1 for Sunday and 2 for Monday
* bunch of jsHint fixes