Fix for issue #106 (repeated pathways). Avoiding repetition by checking
existing element in the DOM before making any ajax call.