jQuery implementation of the classic card game