utils.addToScriptHash(options, "mode", component.getAttributes().get("mode"), "ajax");
utils.addToScriptHash(options, "minValue", component.getAttributes().get("minValue"), "0");
utils.addToScriptHash(options, "maxValue", component.getAttributes().get("maxValue"), "100");
utils.addToScriptHash(options, "context", getContext(component));
StringBuffer markup = getMarkup(context, component);
utils.addToScriptHash(options, "markup", markup != null ? new JSLiteral(markup.toString()) : null);
utils.addToScriptHash(options, "options", buildAjaxOptions(clientId, progressBar, context));
utils.addToScriptHash(options, "progressVar", component.getAttributes().get("progressVar"));
utils.addToScriptHash(options, "state", state, "initialState");
utils.addToScriptHash(options, "value", variables.getVariable("value"));