Fix in actions.js that should fix #114 by correcting the non-existant reference to the "toggle" variable to the usage of the $field variable defined above in the calculate function.