Added javascript client test code