support hashchange event
Fix default location on Windows.

This was causing the window/index tests to fail after the location rewrite of 38b701aee182220fc199c0a5a0547be6e15ac617. Now it's more correct anyway.