} }, { name: 'country', source: function (searchTerm, callback) { callback(countries); } }, { name: 'state', source: function (searchTerm, callback) { callback(states); } }, { name: 'tags', source: function (searchTerm, callback) { callback(<?php echo $imageExplorer->getTags(); ?> ); } } ]/*, initialCriteria : { country : ["USA"], state : ["Arizona"] }*/ }; var imgExplorer = new ImageExplorer(options); imgExplorer.init("imagesearch");