title: How to save username and password in client side templating application
body: <p>I am writing a web application using client side templating. This application needs to interact with a REST Server which supports Basic Http authentication (using ssl). So, with every request that needs to be authorized, username and password are passed in Request header.
  My question is where and how to store username and password so that they can be accessed client-side by javascript code.</p>