Copying js/page-init.js