If jquery-ui is not present, don't use $.ui at all