for loop in vue methods