Try to properly handle btoa

I've only tested with a single card, but this seems to work there (the invoke version is entirely untested).

I don't understand why i need .client in my requires (and would be happy to not have it).

There's probably a missing newline at the end of one of my files too.

This is really just a proof of concept.