add scratch js file that would be refactored to smartSearch.js