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