Js reactions

Try to merge changes that fix computation of ractions
Is this really necessary? For name export I suggest static method:
export_name_vector( vector<Substance> & substance_array)