HTML5 Deck of Cards is made of pure vanilla JS with no dependencies and it's 100% open source. https://deck-of-cards.js.org