A sample js validation library.