updated card class, added main.js