Basic Auth JS client