A rough Message Queuing Telemetry Transport (MQTT) implementation in JavaScript (non-functional)