The Javascript language binding for manipulating WattDepot servers is still under development.
For a preliminary version used to develop the Admin interface, see wattdepot-organization-admin.js.
A more fully featured Javascript language binding for WattDepot 2.0 is available here. This will hopefully be ported to WattDepot 3.0 in the near future.