Changed regex to a simple string operation. Should be more readable and performant. Also updated comment to be consistent with what is returned (behavior has not been changed.)
Fix error when embedding script in a single page.

This script works well when including it into an external file, but it fails when embedding it in the same file. This fixes it by always escaping it, which will work in embedded and external documents.
Support jQuery 1.9
Merge branch 'master' of https://github.com/mohamedmansour/jquery-hashchange
Merge branch 'master' of https://github.com/blixt/jquery-hashchange