moment.js to and fro