Validates Javascript Objects