A minimalist javascript form validator