Fixed bug where the custom search restore defaults functionality was broken in javascript.