demo init with location.hash