merged updates from documentcloud/visualsearch 0.4.0

needed for compatibility with jquery-ui 1.10