fix a little spelling mistake

change lenght to length, or the apikey would not add to the url
if(key.length>0)
{
 url+="&apikey="+key;
}