Javascript Loop Over Array Elements And Subscripts Meaning