fix some js bugs relating to stoichiometry table