Hot or Cold JavaScript function (Thinkful Project)