Changing the event for the JS group visualization