Treatment of navigator and location for webworker