ripts, 0, 0);
        }

        function scriptRunner(scriptArray, index, retries) {
            var maxRetries = 2;

            ViewDwr.executeScript(scriptArray[index], function(success) {
                var maxIndex = scriptArray.length - 1;

                if (success && index < maxIndex) {
                    scriptRunner(scriptArray, (index + 1), 0);
                } else if (!success) {
                    if (retries < maxRetries) {
                        console.warn("Failed to run script " +