Re-arrange the hashchange function
Merge pull request #32 from cbwiedel/master

Re-arrange the hashchange function