js looping array added

should have sent earlier