Fix ro router javascript to allow for external calls

The OG Gui does not work if you call it from an external web link.  This is because OG tries to look for data in the external web page that may not be present if it is not an OG page.