Removed XRegExp dependency