First scripts and browser setup

After the first four scripts, vary how the browser starts and what environment the page sees.