update to be compatible with the latest version of the moment.js package.