add requirejs
refactor search form