updated js to modify link name on toggle