         	
         	jsonCache.getJsonObject(getUrl(web_service, params), function(result:Object):void
         	{
+				var idx:int;
         		var columns:Array = result[0] as Array;
         		var rows:Array = result as Array;
         		var data_column:Array = new Array(rows.length - 1);
         		var key_column:Array = new Array(rows.length - 1);
         		var key_column_indices:Array = new Array(columns.length);
         		var data_column_index:int = columns.indexOf(variable_name);
-        		for (var idx:int = 0; idx < key_column_names.length; idx++)
+        		for (idx = 0; idx < key_column_names.length; idx++)
         		{
         			key_column_indices[idx] = columns.indexOf(key_column_names[idx]);
         		}

					jsonCache.getJsonObject(data[VARIABLES_LINK], function(result:Object):void
						{
							data.cache = result;
							var concepts:Object = {};
							/* Build a hierarchy out of 'concepts', roughly speaking, tables. */
							for (var key:String in result.variables)
							{
								if (key == "for" || key == "in") continue;
								var column:Object = result.variables[key];

        			var row:Array = rows[row_idx+1];
        			var key_values:Array = new Array(key_column_indices.length);

        			for (idx = 0; idx < key_column_indices.length; idx++)
        			{
        				key_values[idx] = row[key_column_indices[idx]];
        			}
