Working implementation of JQuery event on mouseup of node