javascript for 21 cardgame