HTML5 player-vs-player chatroom + game server in Perl