code-mod: moving card construction code to Card.js. rearranging event-handlers in client