Hello,
I am not sure I get the whole context, but as far as I can tell both javascript files are used internally by our "editor" controls and I am not sure that we support working directly with the javascript only (without the server-side component).
In your case, isn't it possible to use the WebMaskEdit control and set the InputMask property to what you need?
<igtxt:WebMaskEdit
ID="WebMaskEdit1"
runat="server"
InputMask="###,###">
</igtxt:WebMaskEdit>
In the "Editors" suite of controls, we also offer many specialized components like WebPercentEdit, DataTimeEdit, etc.