Thank you, and yes, it is pure js. (well, +html/css of course)
And I'll need to take a look at Slay the Spire in that regard, it sounds interesting.