Minor cleanup
Allow `-` in domain names for IDN support

Also note that `\w` already includes `\d` so the regex can be
simplified a bit.
Use the History API for entered domains
Merge pull request #9 from mathiasbynens/tweaks

Tweaks