Javascript Loop Through Array Of Objects And Their Meanings