Javacript library for validating form inputs