Fix mask for new version of the javascript datepicker
When using setMask method, add the mask as a data propterty on the input

This allows you to set the data-mask in one method call, instead of
having to call setAttribute() from your code to put the data-mask
property into place.
Fix bugs introduced by previous commit
Merge pull request #11 from turanct/form-date-masks

Form date masks