jsApp: the answer, same js for caller and callee, you need to change the isCaller flag for each tab, notice that receiveAnswer not done yet