duckduckgo/zeroclickinfo-spice — pull request #1341 by kethinov (2014-12-11 18:57:10+00:00)
Title: Refactoring whois spice

Changes:
- Provided explicit template for whois info table rather than inheriting template from downstream code outside of this repo.
- More semantic HTML:
- For available domains: introduced `

` and `` tags instead of inline text nodes and `
` tags and removed duplicate `` tag.
- For taken domains: refactored table into a more semantic definition list for key/value pairs.
- Made code formatting consistent (now only follows one style for things like whitespace, quotes, etc).
- Refactored JS to use function statements rather than function expressions where possible. This has the following benefits:
- This is the most readable way to obey the [onevar rule](http://wonko.com/post/try-to-use-one-var-statement-per-scope-in-javascript).
- This will give a named function in a stack trace in the debugger rather than an anonymous function, which makes debugging easier.
- There is a [small performance advantage](http://jsperf.com/fn-expression-vs-statement).
- Added [Oxford comma](http://thumbnails-visually.netdna-ssl.com/the-oxford-comma_52c855ed979ed_w1500.jpg) to register domain links.