Update iterator.js