Convert Ajax handling to use history.pushState instead of hashes. Thanks to realchaseadams