Integration of plugin buttons in result panel

Change-Id: I74c8264f02a64c6f339dbb46295d6be92807d833
diff --git a/dev/js/src/plugin/server.js b/dev/js/src/plugin/server.js
index 69318b0..163a315 100644
--- a/dev/js/src/plugin/server.js
+++ b/dev/js/src/plugin/server.js
@@ -31,7 +31,8 @@
   // List of panels with static buttons, i.e.
   // panels that occur only once.
   var buttonsSingle = {
-    query : []
+    query : [],
+    result : []
   }
   
   // This is a counter to limit acceptable incoming messages
@@ -117,10 +118,9 @@
           throw new Error("Embedding of plugin is no object");
 
         var panel = embed["panel"];
-
+        
         if (!panel || !(buttons[panel] || buttonsSingle[panel]))
           throw new Error("Panel for plugin is invalid");
-
         var onClick = embed["onClick"];
 
         // Needs to be localized as well