Date objects using js and moment.js