fix Javascript error on engraving calculator