fix Javascript error on engraving calculator

Fixes #95