var iframe = document.createElement('iframe') iframe.src = pandoraURL + '/edits/' + config.edit + '#embed?matchRatio=true&showInfo=true' var ascroll = document.querySelector('#ascroll') ascroll.appendChild(iframe)