Moving tvshow-pref code to options.js and fixing random input bug