Update select_dropdown.js

added termination statement