Hi,
You can have a hidden text widget with variable like "step_no".
From your process, you should pass process variable "step_no" at manual task inputs.
From your web interface, visible and active script, you can write
RMPApplication.get("step_no") == "something"
This something is what you pass from process side, which determines which step it is at.
Best regards,
Taka