Setting cookies now

Cookie key: pw-tv-shows
Refactored popup.js