optimized client javascript; added Ratchet.debug