added rfCardDetected JS