Standalone JavaScript library for suggesting and completing text in an input field based on a mask and rules