Adjusted code style in options.js, used variable to store indexOf call for validFilter