call gotoPage on dom ready depending on url fragment