diff --git a/js/rt-html-abs.js b/js/rt-html-abs.js
index 1fdcaed..9280d8c 100644
--- a/js/rt-html-abs.js
+++ b/js/rt-html-abs.js
@@ -276,7 +276,11 @@ function openChat(element) {
App.callActionButton(json);
}
-window.downloadVCard = function() {
+// Create namespace if it doesn't exist
+window.rtlib = window.rtlib || {};
+
+// Add function to namespace
+rtlib.downloadVCard = function() {
const vCardContent = document.getElementById('vcardTemplate').textContent;
const fnMatch = vCardContent.match(/FN;CHARSET=utf-8:(.*)/);