IAIndex.js - escape special chars in the regex for the query