Convert client to Javascript