Fix Javascript error on engraving calculator