Chat written in C and Javascript