simple chat dev with js and php