DOM hack

using DOM to store global variables/page depth for back button