To center the new window, give it a left and top value half of the screen size - half of the window size :
var left = ($(window).width()/2)-(900/2),
top = ($(window).height()/2)-(600/2),
popup = window.open ("", "popup", "width=900, height=600, top="+top+", left="+left);