Changed template's pref.js to use new welcome and REI page functions.