|<\/div>/g, '\n');
                    eval.call(null, jsCode);
                } else {
                    var customStyles = '';
                    if (widget.isHtmlWidget === true) {
                        customStyles += ' widget-type-htmldiv';
                    }
                    var $content = $('
');
                    $content.find('[data-skip-fix-widget-height]').css('height', '100%').parent().css('height', '100%');
                    var yPosition = "" == "True" ? widget.y + 15 : widget.y;
                    grid.addWidget($content, widget.x, yPosition, widget.width, widget.height);
                }
            });
            // remove gridstack absolute position and fixed height if there is one widget on the page
            $.cdh.helper.removeGridstackFixedHeight(widgets.length);
             $("#preSpinner").fadeOut(200, function() { $(this).remove(); });
        })