Fixed JS validation to restrict commas