Removed console.log
Exposed isAuthorized window api call