Moved heatmap implementation into js-file.
Changed computed resolution to deliver results corresponding to the date
picker.