For Loop Over Array Javascript Methods For Objects