Added checks for jquery and jquery-ui