title: Swapping key value of Object in javascript
body: <p>I am trying to swap key and value of object.
  I have written code on js fiddle Please check the <a href="http://jsfiddle.net/PravinKottawar/o1dcaw8j/" rel="nofollow">link</a></p>
  
  <p>There is no output 
  I am using following write code to html</p>
  
  <pre><code> document.getElementById("demo").innerHTML = out;
  </code></pre>
  
  <p>Can some one please tell me where I am  making mistake ?</p>