patch on hashchange function to only run if hashchange option is true
Merge pull request #184 from ndimatteo/hash-patch

patch on hashchange function to only run if hashchange option is true