As far as I could understand your code, this would be it:
var polygon = [],
i;
//push an object with x and y into the polygon array
for (i = 0; i < 4; i++){
polygon.push({
x : 'x @'+i,
y : 'y @'+i
});
}
//accessible as
polygon[index].x
polygon[index].y