A validator library for javascript