CR fixes: there's no need to use $.grep to determine target URL