For Loop in JS