You might want to have a look at STRICH. It's JavaScript backed by WebAssembly and supports PDF417.
Disclaimer: I am the author.