proper for in iteration js