BHV-12385: Fix bug with updating month when changing locales, fix JSHint errors.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam <aaron.tam@lge.com>