Added hashchange event listener and fixed hash link bug

- closes issue #15
- closes issue #16