move search.js to controls folder
move search.js to controls folder
refactor search.js control by moving out initialization code