client.js is hanging