in favor of window.__torii instead of window.torii for determining status of torii popup
add suport for location polling based on configuration, or if running in IE