Create the root frame before evaluating the javascript URL.

This prevents a crash when the script in the javascript URL accesses the
document attribute.