Moved JavaScript to separate file
Moved Javascript to separate file.
Added error handling for seasons with no episodes for counting new
episodes.