Validate JavaScript objects against interfaces