Update select2.js

above function doesn't work great