replaced browser sniffing in js history plugin with onhashchange support detection