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