fix 24 hours to 12 hours AM/PM in index.js