This is very easy.  In picswap.html add this code at the end of the function:

var newSrc=document.getElementById('picture').src;
alert(newSrc);

Try it.