JavaScript: a sample of location.hash