prova cosi
var ancora = location.hash.split("#")[1]