Create a JS handler for removing a section