Patched js regex