Changed solr.js to use promises