added card variable, did some fiddling.  bleh.  js is kinda fun