remove non-js-compatible dependency for java.util.Iterator