It does work, but one part of the code makes no sense.
If I comment out the middle line, it works.
If I don't comment it out, the numbers don't display.
If I delete all three lines, the numbers don't display.
I am worried that something else is amiss because deleting an instruction to display a number with 2 decimals should not break the code.
x = x.toFixed(2);
//y = y.toFixed(2);
z = z.toFixed(2);
Full code attached.