Koliko se secam tako nesto postoji
https://github.com/browserstate/history.js/
"For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality."