Improve and manage externally the new tab JS (now CoffeeScript).

* Now elegant CoffeeScript instead of a hoary block of JS
* Now, if new URLs are loaded on the page, and they've already been marked as new tab URLs, they will be caught