server and javascript