Metrics: compatibility problem with global jQuery