Fix some errors in the controller->javascript interaction, but one last bug remaining in rendering dealer's cards