Using JavaScript to Trigger Heatmaps