Build JS handler to create a new section