add client.js to index