move raw jquery events into cardsApp and explicitly pass in its element