Portion of code doesn't appear to be running (with no perceivable explanation). Would love some help with this...

Check the intl object.
Intl.DateTimeFormat() constructor - JavaScript | MDN.