check for api, check for jquery