Use moment.js in auto close js