use jquery to replace some method