JSD does for Javascript what XSD does for XML. Create complete shemas and test if your objects validate with it.