Update script.js

Target select option value instead of class name, in order to work with multi word statuses.