Avoid starting docker before docker-compose exists

Fixed a bug whereby ajax callbacks were executed immediately
rather than deferred at ajax result time by wrapping actual
execution functions with anonymous callbacks.

Bug: Issue 10053
Change-Id: I3d4685fb169f0678d7fe7822c4b86c4e0f3f5658
diff --git a/src/main/resources/static/js/analyticswizard.js b/src/main/resources/static/js/analyticswizard.js
index c7b02d2..3407b07 100644
--- a/src/main/resources/static/js/analyticswizard.js
+++ b/src/main/resources/static/js/analyticswizard.js
@@ -135,7 +135,7 @@
         // Need to catch the status code since Gerrit doesn't return
         // a well formed JSON, hence Ajax treats it as an error
         statusCode: {
-          201: dashboardService('up')
+          201: function () { dashboardService('up'); }
         },
         error: function(jqXHR, textStatus, errorThrown) {
           if(jqXHR.status != 201) {
@@ -164,7 +164,7 @@
       // Need to catch the status code since Gerrit doesn't return
       // a well formed JSON, hence Ajax treats it as an error
       statusCode: {
-        201: waitForImport
+        201: function () { waitForImport(); }
       },
       error: function(jqXHR, textStatus, errorThrown) {
         if(jqXHR.status != 201) {
@@ -183,8 +183,8 @@
       dataType: 'application/json',
       contentType:"application/json; charset=utf-8",
       statusCode: {
-        202: pollStatusEndpoint,
-        204: wizardGoToDashboard
+        202: function() { pollStatusEndpoint(); },
+        204: function() { wizardGoToDashboard(); }
       },
       error: function(jqXHR, textStatus, errorThrown) {
         if(jqXHR.status != 202 && jqXHR.status != 204) {