Could this bug be occurring because in the function prepareForCaret you are passing...
JavaScripTools InputMask 2.2.5 isn't working in IE8