Fix moment.js deprecation warnings