seperated js into heatmap.js