changed .contains() to .indexOf in communicationWithSAP.js