add simple js validator to form, put js in his own file, close #7