Deleted js/card.js
Added new script tags. Removed some useless variables.