I will DM you to get together in discod and try to brainstorm some ideas if you want.
The first idea that comes to my mid would be to create a structure that contains all the pokemon cards and their attributes (display[bool] etc…) in your client (or even in another lua file, cards.lua to make the code easier to read), then you send your structure to the script.js (modified by the client if needed, for the display attribute for example) and you unpack it their (you can also use a loop in your script.js to show or not every card instead of one condition statment by card).