Javascript library for simple validation