Moved activation code from init.js to pages.js.