conform to jquery api