fixing init once run many (#240)

diff --git a/knative-build/runtimes/javascript/platform/knative.js b/knative-build/runtimes/javascript/platform/knative.js
index 2582401..d3013cd 100644
--- a/knative-build/runtimes/javascript/platform/knative.js
+++ b/knative-build/runtimes/javascript/platform/knative.js
@@ -433,7 +433,8 @@
                 // an OpenWhisk Action expects them, as well as enable additional Http features.
                 preProcessRequest(req);
 
-                service.initCode(req).then(function () {
+                service.initCode(req).then(function (result) {
+                    res.status(result.code).send(result.response);
                 }).catch(function (error) {
                     console.error(error);
                     if (typeof error.code === "number" && typeof error.response !== "undefined") {
diff --git a/knative-build/runtimes/javascript/tests/helloworldwithparams/data-init.json b/knative-build/runtimes/javascript/tests/helloworldwithparams/data-init.json
index 6dccc97..93fba33 100644
--- a/knative-build/runtimes/javascript/tests/helloworldwithparams/data-init.json
+++ b/knative-build/runtimes/javascript/tests/helloworldwithparams/data-init.json
@@ -1,5 +1,5 @@
 {
-    "value": {
+    "init": {
         "name" : "nodejs-helloworld-with-params",
         "main" : "main",
         "binary": false,
diff --git a/knative-build/runtimes/javascript/tests/helloworldwithparams/data-run.json b/knative-build/runtimes/javascript/tests/helloworldwithparams/data-run.json
index e1febdc..c498345 100644
--- a/knative-build/runtimes/javascript/tests/helloworldwithparams/data-run.json
+++ b/knative-build/runtimes/javascript/tests/helloworldwithparams/data-run.json
@@ -1,12 +1,14 @@
 {
-    "value": {
-        "name" : "Joe",
-        "place" : "TX"
-    },
+  "activation": {
     "namespace": "default",
     "action_name": "nodejs-helloworld-with-params",
     "api_host": "",
     "api_key": "",
     "activation_id": "",
     "deadline": "4102498800000"
+  },
+  "value": {
+    "name" : "Jill",
+    "place" : "OK"
+  }
 }