WA client in JavaScript