Crunchy and Crispy javascript input validator