Formatting js code
Remove alert (already implemented by browsers with 'required')
Remove alert : this case can not append. Moreover, it is not tested ;)