webm + events for saferi

implementation of preference for webm src to chrome + change of events
to addEventlistener (for safari)