refactor option selectors js for single options