NodeJS: tornado demo server websocket json messages and uploading working.
fixed local variable scope for destructured assignment.