History JS working for URL query string