Further break down each heat chart file into seperate functions for easier jasmine testing