[javascript] Javascript: convert 24-hour time-of-day string to 12-hour time with AM/PM and no timezone