using moment.js when working with dates