// needed as content_scripts don't have access to chrome.tabs api
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
    chrome.tabs.create(msg);
})

@@ -135,16 +135,53 @@
 onse) %7B%0A
+    if (msg.name == 'new-tab') %7B%0A    
     chro
@@ -202,10 +202,25 @@
 (msg
-);
+.payload);%0A    %7D
 %0A%7D)
+;
 %0A

update background.js to accept multiple messages