javascript regex globally case insensitive issue

welcome to shbcf.ru