window.open should show the window by default.

Fix #491.