translated client.js