made API compatible with jQ 1.4