jquery to handle the incoming anchor text