waitingforconfirm js