Refactoring dashboard.js
Replacing moment(now) by moment()