You could also do:
```
if(/.+@mozilla\.com$/.test(verified.email)) {
```

Better yet would be to make the initial .+ more restrictive so that it only matches allowed characters.

Are mozilla.org email addresses valid?