title: how does the Awesomium JSObject work i can't find an example
body: <p>I'm using Awesomium WebControl on a Form in C# and i'm trying to pass information into the browser that a USB device has been plugged in i have the USB detection working but for some reason i can't build a <code>JSObject()</code> with the values per device plugged in into it.</p>
  
  <p>Here is the code that is fired when a Device is plugged into the computer</p>
  
  <pre><code>JSObject js_obj;
  
  DriveInfo[] allDrives = DriveInfo.GetDrives();
  
  JSValue[] js_arr = new JSValue[allDrives.Count()];
  
  int count = 0;
  
  foreach (DriveInfo drive in allDrives)
  {
      if (drive.IsReady == true)
      {
          if (drive.DriveType == DriveType.Removable)
          {
              js_obj = new JSObject();
              js_obj["Id"] = new JSValue("");
              js_obj["TimeAdded"] = new JSValue("");
              js_obj["DriveLetters"] = new JSValue(drive.VolumeLabel);
              js_obj["Port"] = new JSValue("");
              js_arr[count] = new JSValue(js_obj);
              count++;
          }
      }
  }
  
  this.Browser.CallJavascriptFunction("DiskDetector", "DeviceAdded", js_arr);
  </code></pre>
  
  <p>But when i add a break point at <code>this.Browser.CallJavascriptFunction("DiskDetector", "DeviceAdded", js_arr);</code> js_arr is an array of 4 with where all the values are null</p>
  
  <p>I think the problem is my use of the JSObject and Setting values JSObject Extends IDisposable and i though i would have to all Add("key", "Value"); but the method is not there for me to use </p>