javascript: for-each-call-queryall