Adding event handlers using jquery.
Fixed lists of events (space separated, no comma separated).