javascript regexp fix