Tweaked Card Icon JS so it will work a little cleaner