Checks if a URL exists in JavaScript through YQL