Nicer example, using window.open w/ callback