updated js to reflect symmath changes