More welcome ad spot tweaks.

More tweaks to the ready.js file to get the welcome ad spot working. Also fixed a variable scoping error for some other unrelated code.