Added moment.js to calculate range