Card css and javascript