Got rid of the currentDiv stuff from JS, just using hide() and show(). Back button works good now too.