Change tab on hashchange. Implements #1

Little refactoring may be a good idea. Also I didn't include minified version, so you would need to reminify plugin.