some fixes+forgot to add spectrapsearch.js.erb