Removes index#main with correct method in pop_state.js