support browsers without html5 history