Set meeting room name from the URL

I am using 8x8 domain and I am looking a way to enter the meeting room name from the URL entered such that:
var domain = "";
            var options = {
                roomName: "vpaas-magic-cookie-SecretKey/ROOMNAME", <-- Want to enter it here
                jwt: 'secretKey',
                parentNode: document.querySelector("#api-parent"),
                configOverwrite: {
                    prejoinPageEnabled: false,
                    startWithAudioMuted: true,
                    startWithVideoMuted: true,
                    requireDisplayName: true,

Is there any way to pass “ROOMNAME” from URL to roomName in the code? :sweat_smile: