Minor fixes

Fixed some minor errors and ommisions in the search JavaScript