tweaks to the js event triggers to allow multiples