added jQuery support