title: change property name
body: <p>I have a JavaScript object as follows:</p>
  <pre><code>var a = { 
   Prop1: 'test', 
   Prop2: 'test2' 
  }
  </code></pre>
  <p>How would I change the <strong>property name</strong> of <code>Prop1</code> to <code>Prop3</code>?</p>
  <p>I tried the following code but it didn't work...</p>
  <pre><code>for (var p in r){
    p.propertyName = 'Prop3';
  }
  </code></pre>