var x_timer;
var ip ='';
var geo ='';

$('#search').bind("keyup blur", function (event){

var exclud = [13,27,37,38,39,40];
clearTimeout(x_timer);


	x_timer = setTimeout(function(){
	if (exclud.indexOf(event.which) === -1) {
	
		var url = 'http://api.openweathermap.org/data/2.5/weather?q='+ $('#q').val()+'&units=metric&appid=2de143494c0b295cca9337e1e96b00e0';
		$('.var').empty();
	    $.get(url, function(data){
		  var temp = data.main.temp;
		  var winddir = degToCompass(data.wind.deg);
		  var speed = data.wind.speed;
		  var icon = data.weather[0].icon;
		  var city = data.name+','+data.sys.country;
		  
		  
		$('.icon').attr("src","http://openweathermap.org/img/w/"+icon+".png");  
		$('.temp').html(temp);
		$('.wind').html(' Direction : '+winddir+' Speed: '+speed);
		$('.city').html(city);
		
	 });


}
}, 300);
});

    /*var urlip = 'https://api.ipify.org/?format=json';
    $.get(urlip, function(ipdata){
    	var ip = ipdata.ip;
    });
    if(ip!=''){
    var urlgeo = 'http://freegeoip.net/json/'+ip;
    $.get(urlgeo, function(geodata){
    	geo = geodata.city;
    	var code = geodata.country_code;
    	if(geo!=''){
    		$('.yourcity').html(geo);
    		$('.clic').html('<==== Just Click if this is your City!');
    		var newurl = 'http://api.openweathermap.org/data/2.5/weather?q='+geo+','+code+'&units=metric&appid=2de143494c0b295cca9337e1e96b00e0';
    		$('a').on("click",function(e){
    			
    		$.get(url, function(data){
		  var temp = data.main.temp;
		  var winddir = degToCompass(data.wind.deg);
		  var speed = data.wind.speed;
		  var icon = data.weather[0].icon;
		  
		$('.icon').attr("src","http://openweathermap.org/img/w/"+icon+".png");  
		$('.temp').html(temp);
		$('.wind').html(' Direction : '+winddir+' Speed: '+speed);
		
	 });
    			
    		});
    	}
    });
    }*/

window.onload = function() {
  document.getElementById("q").focus();
};

function degToCompass(num) {
    var val = Math.floor((num / 22.5) + 0.5);
    var arr = ["N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW"];
    return arr[(val % 16)];
}

@@ -325,40 +325,40 @@
 pid=
-2de143494c0b295cca9337e1e96b00e0
+44db6a862fba0b067b1930da0d769e98
 ';%0A%09

Update weather.js