jquery html5 navigation bug fix