Adopted Yihui's suggestion to use $.makeArray() to fix a bug with searchField option in selectizeInput(), caused by RJSONIO:::fromJSON()
closes yihui/shiny#4 after cleaning it up a bit

use [searchField] instead of $.makeArray(), and unlist() it on the R side