Fixed JS error on option