refactor the object structure on frontend script
improve the object structure on frontend
update jquery version
simplify the broadcast function
the players array is a game property
close connection when the game is full