Fix caretPosMax becoming undefined
caretPosMax now properly calculated
Merge branch 'master' of https://github.com/shaungrady/jquery-mask-input