Added onpopstate initializer.