Functions for converting percentages to a hex-color code for the heatmap. Added some comments in the index.html file