if (typeof self._doc.stylesheets === 'string') {
                            self._doc.stylesheets = JSON.parse(self._doc.stylesheets);
                        }