Add case insensitivity flag when ignoring invalid short domains

The previous pull req was failing tests for some reason, so I just redid the branch.

I also discovered you need to run
npm install qunitjs

to run the unit tests locally