That JavaScript code is also privacy invasive
As a web developer seeing an end user say this is hilarious. Hate to break it you but there are much better ways to track you.
If you’re that paranoid just use a VPN and never enter personal information on the internet.