libraries: move page.js to extensions/ and remove unused libraries