Move the loading of tif_calculator.js to the buffer
Reformat whitespace