fixed the error by downgrading jquery to 1.2.6 and upgrading htmlunit to the current 2.16-SNAPSHOT