Update moment.js and resolve deprecation notice