Speed up regex on chrome