improve the way of passing the auth token to js

Call the setToken() function by:

   webview.loadUrl("javascript:setToken(TOKEN)");

so that we can pass the auth token into the js code