Update addwpinfo.js

Changed code for better compatibility to jquery plugin Select2