Jets as a probe of dense matter at RHIC