Use next() and prev() instead of +/- 1

When dynamically removing a step, the scripts breaks. The PR makes it possible to remove a step from the form.