[TxMt] Javascript method snippet