Javascript Loop Through Array With Columns