Web Authentication and js call webservice