Javascript jsonchess server