Had to parseInt on the input step-value to iterate correctly
removing temp