// Instantiate the API
var objWeather = new WeatherAPI();

function WeatherAPI()
{	
	this.getWeather = function(strLocation, callback)
	{
		strLocation = strLocation.replace(', ', ',');
		jQuery.get('./forecast', {'weatherLocation':strLocation}, function(objResponse)
		{
			callback(objResponse);
		}, 'json');
	}	
}
