Renames welcome.js to console.js and moves a ton of javascript out of the view