Remove var declaration inside for.