create click event within the D3.js tree - obtain id, class, and value to be used in weighting ui