canvas heatmaps in node.js and the browser