The alert box simply doesn't show nested objects.
//Use this on your object before you alert
alert(JSON.stringify(myObj));
If you use Chrome or Firebug, you can easily see this output using console.log(myObj)
instead of alert. You would need to see the console by pressing Ctrl+Shift+J
in Windows.
Hope this helps!