What do you mean by "third party" javascript? Do you mean javascript that isn't hosted on the same domain as the HTML?
[edit] in fact an alternative to blocking third party cookies is to restrict third party cookies to the domain-visited/third-party-domain, such that third parties can still use cookies to track you on the domain visited but that cookie can't track you accross websites.