Fix syntax and invalid date errors by updating to syntax compatible with moment.js 2.4.0