Changed YT API access from file_get_contents to cURL