Tab state correctly displayed on page load

- resolves #10
- pushState is also handled correctly
Merge pull request #20 from bengladwell/master

Tab state correctly displayed on page load