Update JS even more and add a method to shuffle the cards