Add bookmarklet support, clean up hashSwitch()