Use jQuery event targets

Makes timeframe work in Firefox.