Demo to show how window.open works