Javascript router based on window.onhashchange. Support Ie6.