moving cards config into separate js file