added javascript to test services on clientside