added some jquery support