Fixing time format for getMonth in JSON for IE11 and Safari