WebSocket now connects to location.hostname instead of localhost.  Use input_total for progress bar calculations