javascript: for-each