fixed js validation - added slashes around the regex