Javascript framework for testing and developing games based on cards