delete codes in main js, some codes in html-middle divs