better jquery compatibility support