A simple object validator for nodejs