added javascript for player stay and dealer hit