added the javascript regex