Improve javascript (src/parsley/ui.js).
Merge pull request #665 from vsn4ik/master

Improve javascript (src/parsley/ui.js).