[Cleanup] clean client.js