If you stick that poly-fill on your website they can also sue you for distributing the decoder to everyone that downloaded the javascript file.
Otherwise JS would become a universal patent loophole, which I'm pretty sure a judge would find fault with.
(IANAL also.)
The patent courts and ITC have looked very unfavorably on First Amendment claims and on defenses based on lack of infringement within the USA and technologies with alternative non-infringing uses not being liable.
The Supreme Court is less extremist than patent courts on insisting that patents pre-empt the Constitution, but the Supreme Court takes very few cases and you'd already have spent millions to get there and -- most importantly -- the patent courts largely don't consider Supreme Court cases to be necessarily binding precedent next time around.
If I own a patented 3d printer, would you be worried that those patents could restrict my ability to distribute the objects printed by it?
The javascript decoder would certainly be covered by the patents as much as any other decoder, so it doesn't solve the patent-related barriers to adoption even if it takes care of the practical issues with using the format.