A simple validation engine for JS.