Client and javascript server