add javascript recalc