General purpose validation library for JavaScript (work in progress)