fix moment.js deprication warning