Only replace the hash when it's different. Greatly improves performance in Chrome 26 on Mac.