Only replace the hash when it's different. Greatly improves performance in Chrome 26 on Mac.
Merge pull request #10 from erikperson/master

Only replace the hash when it's different. Fixes #7.