Javascript Array Loop Methods Of Communication