Connecting the webservice with javascritp