Safari/Firefox compatibility

Both Safari and Firefox have problems with setting the click() event, so
it's been configured to fallback to an event if .click() fails.