Cookie: Code refactor

* Moved in-page JS of homepage to external JS file
* Referenced minified JS for faster load