The CMS menu is not loading as a DOM element but just as RAW html. Thats why appendChild to a dom element is not working. Hope i will fix it soon, takes a bit long ;-)
The return value from the http://test.domain.com/admin/pages/edit/show/3 is not parsed well.
{"Content":"<div id=\"pages-controller-cms-content\" class=\"cms-content center cms-tabset CMSPageEditController CMSMain LeftAndMain\" data-layout-type=\"border\" data-pjax-fragment=\"Content\">\n\n\t<div class=\"cms-content-header north\">\n\t\t<div class=\"cms-content-header-info\">\n\t\t\t<h2>\n\t\t\t\t<div class=\"breadcrumbs-wrapper\" data-pjax-fragment=\"Breadcrumbs\">\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\t<span class=\"section-icon icon icon-16 icon-\"><\/span>\n\t\t\t\n\t\t\n\n\t\t\n\t\t\t<a class=\"cms-panel-link crumb\" href=\"admin\/pages\/\">Pages<\/a>\n\t\t\t<span class=\"sep\">\/<\/span>\n\t\t\n\n\t\n\t\n\t\t\n\n\t\t\n\t\t\t<span class=\"cms-panel-link crumb last\">Contact<\/span>\n\t\t\n\n\t\n<\/div>\n\n\t\t\t<\/h2>\n\t\t<\/div>\n\t\n\t\t<div class=\"cms-content-header-tabs\">\n\t\t\t<ul>\n\t\t\t\t<li class=\"content-treeview ui-tabs-selected\">\n\t\t\t\t\t<a href=\"admin\/pages\/edit\/show\/3\" class=\"cms-panel-link\" title=\"Form_EditForm\" data-href=\"admin\/pages\/edit\/show\/3\">\n\t\t\t\t\t\tContent\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t<li class=\"content-listview\">\n\t\t\t\t\t<a href=\"admin\/pages\/settings\/show\/3\" class=\"cms-panel-link\" title=\"Form_EditForm\" data-href=\"admin\/pages\/settings\/show\/3\">\n\t\t\t\t\t\tSettings\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t<li class=\"content-listview\">\n\t\t\t\t\t<a href=\"admin\/pages\/history\/show\/3\" class=\"cms-panel-link\" title=\"Form_EditForm\" data-href=\"admin\/pages\/history\/show\/3\">\n\t\t\t\t\t\tGeschiedenis\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/li>\n\t\t\t<\/ul>\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"cms-content-tools west cms-panel cms-panel-layout\" data-expandOnClick=\"true\" data-layout-type=\"border\" id=\"cms-content-tools-CMSMain\">\n\t<div class=\"cms-panel-content center\">\n\t\t<div class=\"cms-content-view cms-tree-view-sidebar cms-panel-deferred\" id=\"cms-content-treeview\" data-url=\"admin\/pages\/treeview\">\n\t\t\t\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"cms-panel-content-collapsed\">\n\t\t<h3 class=\"cms-panel-header\">Line Footwear<\/h3>\n\t<\/div>\n<\/div>\n\n\t<form id=\"Form_EditForm\" action=\"admin\/pages\/edit\/EditForm\" method=\"post\" enctype=\"multipart\/form-data\" class=\"cms-edit-form center ss-tabset CMSPageEditController CMSMain LeftAndMain\" data-pjax-fragment=\"CurrentForm\" data-layout-type=\"border\">\n\n\t<div class=\"cms-content-fields center\">\n\t\t\n\t\t<p id=\"Form_EditForm_error\" class=\"message \" style=\"display: none\"><\/p>\n\t\t\n\n\t\t<fieldset>\n\t\t\t \n\t\t\t\n\t\t\t\t<div id=\"Root\" class=\"ss-tabset tabset\">\n\t<ul>\n\t\n\t\t<li class=\"first \"><a href=\"#Root_Main\" id=\"tab-Root_Main\">Inhoud<\/a><\/li>\n\t\n\t\t<li class=\"last \"><a href=\"#Root_SEO\" id=\"tab-Root_SEO\">SEO<\/a><\/li>\n\t\n\t<\/ul>\n\n\t\n\t\t\n\t\t\t<div id=\"Root_Main\" class=\"tab \">\n\t\t\t\t\n\t\t\t\t\t<div id=\"Title\" class=\"field text\">\n\t<label class=\"left\" for=\"Form_EditForm_Title\">Pagina titel<\/label>\n\t<div class=\"middleColumn\">\n\t\t<input type=\"text\" name=\"Title\" value=\"Contact\" class=\"text\" id=\"Form_EditForm_Title\" \/>\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t\t\t<div id=\"URLSegment\" class=\"field text urlsegment\">\n\t<label class=\"left\" for=\"Form_EditForm_URLSegment\">URL Segment<\/label>\n\t<div class=\"middleColumn\">\n\t\t<span class=\"prefix\">http:\/\/test.linefootwear.nl\/<\/span><input type=\"text\" name=\"URLSegment\" value=\"contact\" class=\"text urlsegment\" id=\"Form_EditForm_URLSegment\" \/>\n\n<p class=\"help\"> Special characters are automatically converted or removed.<\/p>\n\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t\t\t<div id=\"MenuTitle\" class=\"field text\">\n\t<label class=\"left\" for=\"Form_EditForm_MenuTitle\">Navigatie label<\/label>\n\t<div class=\"middleColumn\">\n\t\t<input type=\"text\" name=\"MenuTitle\" value=\"Contact\" class=\"text\" id=\"Form_EditForm_MenuTitle\" \/>\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t\t\t<div id=\"Foto\" class=\"field upload ss-upload ss-uploadfield\">\n\t<label class=\"left\" for=\"Form_EditForm_Foto\">Foto<\/label>\n\t<div class=\"middleColumn\">\n\t\t<ul class=\"ss-uploadfield-files files\">\n\t\n\t\t\n\t\t\t<li class=\"ss-uploadfield-item template-download\" data-fileid=\"4\">\n\t\t\t\t<div class=\"ss-uploadfield-item-preview preview\"><span>\n\t\t\t\t\t<img alt=\"\" src=\"\/assets\/Uploads\/_resampled\/SetRatioSize8060-header-image.jpg\" \/>\n\t\t\t\t<\/span><\/div>\n\t\t\t\t<div class=\"ss-uploadfield-item-info\">\n\t\t\t\t\t<label class=\"ss-uploadfield-item-name\">\n\t\t\t\t\t\t<b>header image.jpg<\/b>\n\t\t\t\t\t\t<span>32 KB<\/span>\n\t\t\t\t\t\t<div class=\"clear\"><!-- --><\/div>\n\t\t\t\t\t<\/label>\n\t\t\t\t\t<div class=\"ss-uploadfield-item-actions\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t<button class=\"ss-uploadfield-item-edit ss-ui-button ui-corner-all\" title=\"Edit this file\" data-icon=\"pencil\">\n\tEdit\n\t<span class=\"toggle-details\">\n\t\t<span class=\"toggle-details-icon\"><\/span>\n\t<\/span>\n\n\t<\/button>\n\t\n\t<button data-href=\"admin\/pages\/edit\/EditForm\/field\/Foto\/item\/4\/remove?SecurityID=9f56d834a64d0c47150e15dfebd694904c538d6e\" class=\"ss-uploadfield-item-remove ss-ui-button ui-corner-all\" title=\"Remove this file from here, but do not delete it from the file store\" data-icon=\"plug-disconnect-prohibition\">\n\tRemove<\/button>\n\n\n\n\t<button data-href=\"admin\/pages\/edit\/EditForm\/field\/Foto\/item\/4\/delete?SecurityID=9f56d834a64d0c47150e15dfebd694904c538d6e\" class=\"ss-uploadfield-item-delete ss-ui-button ui-corner-all\" title=\"Permanently delete this file from the file store\" data-icon=\"minus-circle\">Delete from files<\/button>\n\n\n\n\t\t\t\t\t\t\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"ss-uploadfield-item-editform loading includeParent\">\n\t\t\t\t\t<iframe frameborder=\"0\" src=\"admin\/pages\/edit\/EditForm\/field\/Foto\/item\/4\/edit\"><\/iframe>\n\t\t\t\t<\/div>\n\t\t\t<\/li>\n\t\t\n\t\n<\/ul>\n\n\t<div class=\"ss-uploadfield-item ss-uploadfield-addfile\" style=\"display: none;\">\n\t\t<div class=\"ss-uploadfield-item-preview ss-uploadfield-dropzone ui-corner-all\">\n\t\t\t\t\n\t\t\t\t\tdrop files\n\t\t\t\t\n\t\t<\/div>\n\t\t<div class=\"ss-uploadfield-item-info\">\n\t\t\t<label class=\"ss-uploadfield-item-name\"><b>\n\t\t\t\t\n\t\t\t\t\tAttach files\n\t\t\t\t\n\t\t\t<\/b><\/label>\n\t\t\t<label class=\"ss-uploadfield-fromcomputer ss-ui-button ui-corner-all\" title=\"Upload from your computer\" data-icon=\"drive-upload\">\n\t\t\t\tFrom your computer\n\t\t\t\t<input id=\"Form_EditForm_Foto\" name=\"Foto\" class=\"upload ss-upload ss-uploadfield ss-uploadfield-fromcomputer-fileinput\" data-config=\"{'url':'admin\\\/pages\\\/edit\\\/EditForm\\\/field\\\/Foto\\\/upload','urlSelectDialog':'admin\\\/pages\\\/edit\\\/EditForm\\\/field\\\/Foto\\\/select','urlAttach':'admin\\\/pages\\\/edit\\\/EditForm\\\/field\\\/Foto\\\/attach','acceptFileTypes':'(\\\\.|\\\\\\\/)(html|htm|xhtml|js|css|bmp|png|gif|jpg|jpeg|ico|pcx|tif|tiff|au|mid|midi|mpa|mp3|ogg|m4a|ra|wma|wav|cda|avi|mpg|mpeg|asf|wmv|m4v|mov|mkv|mp4|swf|flv|ram|rm|doc|docx|txt|rtf|xls|xlsx|pages|ppt|pptx|pps|csv|cab|arj|tar|zip|zipx|sit|sitx|gz|tgz|bz2|ace|arc|pkg|dmg|hqx|jar|xml|pdf)$','maxNumberOfFiles':0,'errorMessages':{'acceptFileTypes':'Extension is not allowed','maxFileSize':'Filesize exceeds 32 MB'},'maxFileSize':33554432,'autoUpload':true,'allowedMaxFileNumber':1,'previewMaxWidth':80,'previewMaxHeight':60,'uploadTemplateName':'ss-uploadfield-uploadtemplate','downloadTemplateName':'ss-uploadfield-downloadtemplate','fileEditFields':null,'fileEditActions':null,'fileEditValidator':null}\" type=\"file\" multiple=\"multiple\" \/>\n\t\t\t<\/label>\n\t\t\t<button class=\"ss-uploadfield-fromfiles ss-ui-button ui-corner-all\" title=\"Select from files\" data-icon=\"network-cloud\">From files<\/button>\n\t\t\t\n\t\t\t<div class=\"clear\"><!-- --><\/div>\n\t\t<\/div>\n\t\t<div class=\"clear\"><!-- --><\/div>\n\t<\/div>\n\n\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t\t\t<div id=\"Content\" class=\"field htmleditor\">\n\t<label class=\"left\" for=\"Form_EditForm_Content\">Content<\/label>\n\t<div class=\"middleColumn\">\n\t\t<textarea name=\"Content\" value=\"\" class=\"htmleditor\" id=\"Form_EditForm_Content\" rows=\"30\" cols=\"20\" tinymce=\"true\" style=\"width: 97%; height: 480px\"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in arcu at risus faucibus mattis. Suspendisse non scelerisque neque. Nullam tincidunt arcu eget enim pharetra imperdiet et non erat. Praesent dolor urna, luctus eu varius at, scelerisque sit amet lectus. Cras nisi lorem, bibendum vel interdum a, gravida at mi. Nunc magna est, mattis vel sodales ut, lacinia nec tortor. Nulla varius interdum mollis.<\/p>\n<p>Sed ultrices enim at nulla tristique rhoncus. Etiam congue lobortis eros. Quisque id vulputate mauris. Vivamus tortor neque, tincidunt at sodales eget, sodales et lorem. Curabitur luctus accumsan aliquam. Sed sit amet diam ut mauris consectetur tempor mollis id massa. Aenean bibendum rutrum sagittis. Cras id est a velit laoreet viverra. Praesent sit amet urna non purus luctus fermentum. Etiam placerat, lectus non facilisis scelerisque, elit dolor auctor justo, at volutpat turpis lorem sed massa. Mauris congue semper nisl. Phasellus in nulla felis.<\/p>\n<p>Nulla auctor rhoncus lorem sed hendrerit. Morbi nulla felis, vehicula non interdum at, gravida sed neque. Ut et ipsum sed massa luctus tempus nec venenatis neque. Donec tincidunt adipiscing orci, a iaculis nibh vehicula id. Nullam non leo quis velit pharetra semper eget quis lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean pretium cursus leo, ac aliquam mauris fermentum id. Fusce nec nunc cursus metus placerat adipiscing. Ut sed semper elit. Etiam orci ligula, varius ut sodales eu, lacinia at nisl. Etiam velit neque, eleifend porttitor placerat at, auctor vel magna.<\/p><\/textarea>\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\n\t\n\t\t\n\t\t\t<div id=\"Root_SEO\" class=\"tab \">\n\t\t\t\t\n\t\t\t\t\t<div id=\"MetaKeywords\" class=\"field text\">\n\t<label class=\"left\" for=\"Form_EditForm_MetaKeywords\">MetaKeywords<\/label>\n\t<div class=\"middleColumn\">\n\t\t<input type=\"text\" name=\"MetaKeywords\" class=\"text\" id=\"Form_EditForm_MetaKeywords\" \/>\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t\t\t<div id=\"MetaDescription\" class=\"field textarea\">\n\t<label class=\"left\" for=\"Form_EditForm_MetaDescription\">MetaDescription<\/label>\n\t<div class=\"middleColumn\">\n\t\t<textarea name=\"MetaDescription\" class=\"textarea\" id=\"Form_EditForm_MetaDescription\" rows=\"5\" cols=\"20\"><\/textarea>\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t\t\t<div id=\"ExtraMeta\" class=\"field textarea\">\n\t<label class=\"left\" for=\"Form_EditForm_ExtraMeta\">ExtraMeta<\/label>\n\t<div class=\"middleColumn\">\n\t\t<textarea name=\"ExtraMeta\" class=\"textarea\" id=\"Form_EditForm_ExtraMeta\" rows=\"5\" cols=\"20\"><\/textarea>\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t\t\t<div id=\"MetaTitle\" class=\"field text\">\n\t<label class=\"left\" for=\"Form_EditForm_MetaTitle\">MetaTitle<\/label>\n\t<div class=\"middleColumn\">\n\t\t<input type=\"text\" name=\"MetaTitle\" class=\"text\" id=\"Form_EditForm_MetaTitle\" \/>\n\t<\/div>\n\t\n\t\n<\/div>\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\n\t\n<\/div>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"ClassName\" value=\"TekstPagina\" class=\"hidden\" id=\"Form_EditForm_ClassName\" \/>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"ParentID\" value=\"0\" class=\"hidden\" id=\"Form_EditForm_ParentID\" \/>\n\n\t\t\t\n\t\t\t\t<div class=\"cms-navigator\">\n\t<a href=\"#\" class=\"ss-ui-button cms-preview-toggle-link\" data-icon=\"preview\">\n\t\t« Edit\n\t<\/a>\n\t<ul class=\"cms-preview-states\">\n\t\t\n\t\t\t<li class=\"\"><a href=\"http:\/\/test.linefootwear.nl\/contact\/?stage=Stage\">Concept site<\/a>\n\t\t\t\t<span class=\"cms-preview-watermark\">Concept site<\/span>\n\t\t\t<\/li>\n\t\t\n\t\t\t<li class=\" active\"><a href=\"http:\/\/test.linefootwear.nl\/contact\/?stage=Live\">Gepubliceerde site<\/a>\n\t\t\t\t<span class=\"cms-preview-watermark\">Gepubliceerde site<\/span>\n\t\t\t<\/li>\n\t\t\n\t<\/ul>\n<\/div>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"SecurityID\" value=\"9f56d834a64d0c47150e15dfebd694904c538d6e\" class=\"hidden\" id=\"Form_EditForm_SecurityID\" \/>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"ID\" value=\"3\" class=\"hidden nolabel\" id=\"Form_EditForm_ID\" \/>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"AbsoluteLink\" class=\"hidden nolabel\" id=\"Form_EditForm_AbsoluteLink\" \/>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"LiveURLSegment\" value=\"contact\" class=\"hidden\" id=\"Form_EditForm_LiveURLSegment\" \/>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"StageURLSegment\" value=\"contact?stage=Stage\" class=\"hidden\" id=\"Form_EditForm_StageURLSegment\" \/>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"TreeTitle\" value=\"<span class="jstree-pageicon"><\/span><span class="item">Contact<\/span>\" class=\"hidden nolabel\" id=\"Form_EditForm_TreeTitle\" \/>\n\n\t\t\t\n\t\t\t\t<input type=\"hidden\" name=\"Sort\" value=\"5\" class=\"hidden nolabel\" id=\"Form_EditForm_Sort\" \/>\n\n\t\t\t\n\t\t\t<div class=\"clear\"><!-- --><\/div>\n\t\t<\/fieldset>\n\t<\/div>\n\n\t<div class=\"cms-content-actions south\">\n\t\t\n\t\t<div class=\"Actions\">\n\t\t\t\n\t\t\t\t<fieldset class=\"CompositeField composite ss-ui-buttonset nolabel \">\n\t\n\t\n\t\n\t\t\n\t\t\t\n\t<button name=\"action_unpublish\" value=\"Publicatie intrekken\" class=\"action action ss-ui-action-destructive\" id=\"Form_EditForm_action_unpublish\" title=\"Deze pagina verwijderen uit de gepubliceerde site\" data-icon=\"unpublish\">\n\t\tPublicatie intrekken\n\t<\/button>\n\n\t\t\n\t\n\t\t\n\t\t\t\n\t<button name=\"action_delete\" value=\"Verwijder van de ontwerp webpagina\" class=\"action action delete ss-ui-action-destructive\" id=\"Form_EditForm_action_delete\" data-icon=\"decline\">\n\t\tVerwijder van de ontwerp webpagina\n\t<\/button>\n\n\t\t\n\t\n\t\t\n\t\t\t\n\t<button name=\"action_save\" value=\"Save Draft\" class=\"action action\" id=\"Form_EditForm_action_save\" data-icon=\"addpage\">\n\t\tSave Draft\n\t<\/button>\n\n\t\t\n\t\n<\/fieldset>\n\t\t\t\n\t\t\t\t\n\t<button name=\"action_publish\" value=\"Bewaar en Publiceer\" class=\"action action ss-ui-action-constructive\" id=\"Form_EditForm_action_publish\" data-icon=\"accept\">\n\t\tBewaar en Publiceer\n\t<\/button>\n\n\t\t\t\n\t\t\t\n\t\t\t<a href=\"\/contact\/?stage=Stage\" class=\"cms-preview-toggle-link ss-ui-button\" data-icon=\"preview\">\n\t\t\t\tVoorbeeld »\n\t\t\t<\/a>\n\t\t\t\n\t\t<\/div>\n\t\t\n\t<\/div>\n<\/form>\n\t\n<\/div>"}