Removes index#main with correct method in clear_main.js