split index.html js in client.js