Fix window.open.

Now the window.openner works and newer windows will respect the name attribute.

Reviewed by: Marcelo Lira