Simple validation tool for any JavaScript object