jscript: Handle star and opt operators while matching global regex properly. Before this fix, the regex engine would run into an infinite loop and OOM when encountering a quantifier allowing a zero amount of items in a REG_GLOB regex.
jscript/tests: Add tests for star and opt operators in global regex.