from http://parsleyjs.org/doc/examples/simple.html