Move line with parseInt inside for loop