Fixing Org-protocol issue with conkeror

I have a function in conkeror that saves a web page’s URL and title, along with any selected text at the time, in Emacs/Org-mode as a captured task, when I hit C-c r. It does this by feeding an org-protocol command through emacsclient. A recent upgrade of org-mode broke it, so I had to change it up a bit. The function in my .conkerorrc used to look like this: function org_capture (url, title, selection, window) { var cmd_str = 'emacsclient "org-protocol://capture:/w/'+ url + '/' + title + '/' + selection + '"'; if (window !