connecting web test js calls and web service endpoint