Change J => currentNum

using currentNum, a variable which is easier to understand and more meaningful in the code.