Refactored Coffeescript: split the application into files and removed some logic from App into Card for more consistency.