title: key() on push reference in firebase
body: <p>I am calling the key() method on the push reference but it is not working. I can see that the data is added to my firebase.
  Here is my code:</p>
  
  <pre><code>function createRoom(room){
    //will create a room with the json object passed into the
    //function and will return the key
    var roomRefRet = roomRef.child('ru').child('room').push(room);
    return roomRefRet.key();
  }
  
  var roomKey=createRoom({"name":"bathroom","capacity":"1"});
  </code></pre>
  
  <p>I am a newbie so I am probably missing something.</p>