added the start of the js search-mainpage