Added moment.js library for dates
Reworking histogram data flow