Help with navigation, history and back button

I have a very similar problem.

I had been trying to work with jQTouch.gotBack(). The documentation
says that supplying the id for a div will take you back to that div in
the history. But this doesn't seem to work for me. For example I
should have something like this in my history:

#home -> #settings -> #display-setting -> #delete-setting
At this point if you click the a Delete confirmation I wan to go back
to #settings, here my link has an href of # while my js event is
But I always end up at #delete-setting. I've also tried
Which the documentation says should take you back 2 items in the
history. This seems to also only go back 1 item in history.