Add JS version of formula calculator