Revert "Geolocation no longer depends on socket."

This reverts commit 7cb427c611306739fc3fa1e7b9f8feee340f1815.
Removed pdf.js from main branch.