javascript iterator post