Dynamic order updates: Add, remove, and customize!

I need to update the order summary dynamically using custom JavaScript code. The functionality should include:

Removing shipping and handling charges based on specific conditions.

Adding or removing products from the order summary as needed.

Could anyone help me implement this?