[javascript] Include ES6 for..of construct.