fix Javascript error on engraving calculator

Fixes #95
Intermittent commit
merging spree-2-1-wip