Javascript validation for sf2 forms