fix `mqtt.js` bug
improve examples