clean up back button support and demonstrate some javascript usage. notice alert doesn't work.