title: Pure JavaScript code for HTTP Basic Authentication?
body: <p>Where can I find reference code that implements a HTTP Basic Authentication client in pure JavaScript, suitable for AJAX?</p>
  
  <p>Extra points for code, or pointers to code, that can be used independent of JS toolkits like YUI. No points for Java, Flash/Flex, PHP frameworks, etc.</p>