added java and js mqtt client code examples