Update client.js

Included option to set the preferred sasl mechanism