Javascript server-client game framework