nodeSelection plugin now takes an optional onClick method