Simple javascript lib for html form validation