Golang Loop Through An Array Javascript Documentation