Replace `window.open` by `appendChild`

Prevent problem with Pop-up blocker