it should be:

    var step = parseInt(...);