Add JS validation on regex urls