fix validation for elements named as array element[field]

fixed validation for elements with name defined as array
use case:
<input name="customer[email]" type="text" data-validation="validate_confirmation">
<input name="customer[email]_confirmation" type="text">

Note: I've added example to example.html file but I didn't minified the javascript file.

Best Regards,
Repkit