set client timeout to 50000secs in haproxy.cfg (was cas causing socket.io to drop client connections); cleaned up js