Modifying card displaying to use jquery chaining