Changed javascript for Reaction Pathway Simulator tab