submitting javascript iterators