started adding selection js functionality to nodes