Fix client.js being loaded from wrong URL