refactored date slider with moment.js