Anonymous functions from hotorcold.js javascript file