Added try/catch to client.js just in case