add javascript resource folder and register js-file for ajaxSearch